package com.tianya.common.model;

import java.io.Serializable;
import java.sql.ResultSet;

import com.tianya.common.util.Utility;

@SuppressWarnings("serial")
public class Procedure implements Serializable {
	// Fields
	private Integer status;
	private String code;
	private String message;
	private Object[] outValue;
	public Object[] getOutValue() {
		return outValue;
	}

	public void setOutValue(Object[] outValue) {
		this.outValue = outValue;
	}

	private ResultSet resultSet;

	// Constructors
	/** default constructor */
	public Procedure() {
	}
	
	//获取过程的返回状态
	public Integer getStatus() {
		return status;
	}
	//设置过程的返回状态
	public void setStatus(Integer status) {
		this.status = status;
	}
	//获取过程的错误CODE
	public String getCode() {
		return code;
	}
	//设置过程的错误CODE
	public void setCode(String code) {
		this.code = code;
	}
	//获取过程的错误消息
	public String getMessage() {
		if(message ==null){
			message = "";
		}
		return message;
	}
	//获取过程的错误消息
	public String[] getMessageParam() {
		if(Utility.isEmpty(message))
		{
			return null;
		}
		return message.split("$");
	}
	//设置过程的错误消息
	public void setMessage(String message) {
		this.message = message;
	}

	public ResultSet getResultSet() {
		return resultSet;
	}

	public void setResultSet(ResultSet resultSet) {
		this.resultSet = resultSet;
	}
}
